00e0676aac0b867be55297433168efa395ea900f,adlibrTestProject/app/src/main/java/test/adlib/project/ads/SubAdlibAdViewMMedia.java,SubAdlibAdViewMMedia,loadInterstitial,#Context#Handler#String#,182

Before Change


	}
	
	public static void loadInterstitial(Context ctx, final Handler h, final String adlibKey) {
		final MMInterstitial interstitial = new MMInterstitial(ctx);
		MMRequest request = new MMRequest();
		interstitial.setMMRequest(request);
		interstitial.setApid(mMediaInterstitialID);
		
		intersHandler = h;
		interstitial.setListener(
			new RequestListenerImpl() {
				
				@Override
				public void MMAdOverlayClosed(MMAd mmAd) {
					try{
						if(intersHandler != null){
		 					intersHandler.sendMessage(Message.obtain(intersHandler, AdlibManager.INTERSTITIAL_CLOSED, "MMEDIA"));
		 				}
					}catch(Exception e){
					}
				}
				
				@Override
				public void requestCompleted(MMAd mmAd) {
					try{
						if(interstitial.isAdAvailable()){
							
							if(intersHandler != null){
			 					intersHandler.sendMessage(Message.obtain(intersHandler, AdlibManager.DID_SUCCEED, "MMEDIA"));
			 				}
							
							interstitial.display();
							
							// 미디��션 통계 정보
							AdlibConfig.getInstance().interstitialImp(adlibKey, "MMEDIA");
						}
					}catch(Exception e){
					}
				}

				@Override
				public void requestFailed(MMAd mmAd, MMException exception) {
					try{
						if(intersHandler != null){
		 					intersHandler.sendMessage(Message.obtain(intersHandler, AdlibManager.DID_ERROR, "MMEDIA"));
		 				}
					}catch(Exception e){
					}
				}
				
				@Override
				public void onSingleTap(MMAd mmAd) {
					// 미디��션 통계 정보
					AdlibConfig.getInstance().interstitialClk(adlibKey, "MMEDIA");
				}
			}
		);

		interstitial.fetch();
	}

After Change


				interstitialAd.load(ctx, null);
			}
			
			interstitialAd.setListener(new InterstitialAd.InterstitialListener() {
				
				@Override
				public void onShown(InterstitialAd arg0) {
					try{
						if(intersHandler != null){
			 				intersHandler.sendMessage(Message.obtain(intersHandler, AdlibManager.DID_SUCCEED, "MMEDIA"));
			 			}
							
						// 미디��션 통계 정보
						AdlibConfig.getInstance().interstitialImp(adlibKey, "MMEDIA");
						
					}catch(Exception e){
					}
				}
				
				@Override
				public void onShowFailed(InterstitialAd arg0, InterstitialErrorStatus arg1) {
					
				}
				
				@Override
				public void onLoaded(InterstitialAd arg0) {
					if(interstitialAd.isReady()){
						try{
							interstitialAd.show(ctx);
						}catch(MMException e){
							e.printStackTrace();
						}
					}else{
						
					}
				}
				
				@Override
				public void onLoadFailed(InterstitialAd arg0, InterstitialErrorStatus arg1) {
					try{
						if(intersHandler != null){
		 					intersHandler.sendMessage(Message.obtain(intersHandler, AdlibManager.DID_ERROR, "MMEDIA"));
		 				}
					}catch(Exception e){
					}
				}
				
				@Override
				public void onExpired(InterstitialAd arg0) {
					
				}
				
				@Override
				public void onClosed(InterstitialAd arg0) {
					try{
						if(intersHandler != null){
		 					intersHandler.sendMessage(Message.obtain(intersHandler, AdlibManager.INTERSTITIAL_CLOSED, "MMEDIA"));
		 				}
					}catch(Exception e){
					}
				}
				
				@Override
				public void onClicked(InterstitialAd arg0) {
					AdlibConfig.getInstance().interstitialClk(adlibKey, "MMEDIA");
				}
				
				@Override
				public void onAdLeftApplication(InterstitialAd arg0) {
					
				}
			});
			
		} catch (MMException e) {
			e.printStackTrace();